<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>查看投票选项</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">查看投票选项</div>
                <div class="layui-card-body">
                    <form class="layui-form" action="" lay-filter="component-form-group">
                        <ul class="layui-timeline">
                            {foreach $res as $k=>$v}
                            <li class="layui-timeline-item">
                                <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                                <div class="layui-timeline-content layui-text">
                                    <h3 class="layui-timeline-title">投票选项{$k+1}</h3>
                                    <p style="font-size: 16px">
                                        {$v['vote_title']}
                                    </p>
                                    {if !empty($v['vote_image'])}
                                    <img src="{$v['vote_image']}" style="margin-top: 10px;width: 150px;height: 150px"/>
                                    {/if}
                                </div>
                            </li>
                            {/foreach}
                        </ul>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','form','set','upload','element','laydate'], function(){
        $ = layui.jquery;
        var  admin = layui.admin
            ,element = layui.element
            ,layer = layui.layer
            ,form = layui.form
            ,laydate = layui.laydate
            ,upload=layui.upload;

        form.render(null,'component-form-group');



    });

</script>


</body>
</html>